#!/bin/bash
# list.sh - Get file name list in some dir.

DIR=$(ls ./)
FILE=list.sh

for dir in $DIR;
do
    if [ "$FILE" = "$dir" ]            # 注意，"["后与"]"前的空格
    then
        echo -e "need - \t\t$dir"   # -e选项是解释输出字符中的格式控制符
    else
        echo -e "No-need - \t$dir"
    fi
done
